package BookTest;

public class E2AnimalTest {
    public static void main(String[] args) {
        E2Animal a = new E2Animal(){
            @Override
            public void eat(){
                System.out.println("猫吃鱼，狗吃肉");
            }
        };
        a.eat();
    }
}
